package com.stox.shared.core.model;

import java.util.Date;

import com.stox.shared.core.model.intf.HasDate;

public abstract class AbstractHasDate implements HasDate {

	private Date date;

	public AbstractHasDate() {

	}

	public AbstractHasDate(final Date date) {
		this.date = date;
	}

	public AbstractHasDate(final long date) {
		this.date = new Date(date);
	}

	public AbstractHasDate(final HasDate hasDate) {
		date = null == hasDate ? null : hasDate.getDate();
	}

	@Override
	public Date getDate() {
		return date;
	}

	public void setDate(final Date date) {
		this.date = date;
	}

}
